package homework7;

public class Test {
    public static void main(String[] args) {
        // 创建宠物店对象
        PetShop<Pet> petShop = new PetShop<>();

        // 添加不同类型的宠物
        petShop.addPet(new Pet("Tommy", 2, PetType.DOG));
        petShop.addPet(new Pet("Kitty", 1, PetType.CAT));
        petShop.addPet(new Pet("Charlie", 3, PetType.BRID));

        // 购买宠物
        petShop.buyPet(0);
        petShop.buyPet(1);
    }
}
